<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/



//Route::get('/hd1', function () {
//    //return view('welcome');
//    return 'get';
//});
//
//Route::post('/hd1', function () {
//    //return view('welcome');
//    return 'post';
//});
//
////Route::post('/hd', function () {
////    //return view('welcome');
////   echo 'post';
////});
//Route::group(['prefix'=>'admin','namespace'=>'Admin', 'middleware'=>['web','admin.login']], function ()
//{
//    Route::get('index', 'IndexController@index');
//    Route::resource('article', 'articleController');
//});
//
//Route::group(['middleware'=>['web']], function ()
//{
//    Route::get('admin/login', 'Admin\IndexController@login');
//
//    Route::get('/', function () {
//        session(['key'=>123]);
//        return view('welcome');
//        //return 'welcom';
//    });
//    Route::get('/test', function () {
//        echo session('key');
//        return 'test';
//    });
//});

//route :: get('/', function(){
//    return view('welcome') ;
//});
//
//route :: get('/view', function(){
//    return view('my_laravel') ;
//});

route :: get('/view', 'ViewController@index');